<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
      <#include "/common/elibs.html">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
  </head>
  <script>var index;
  </script><body>
    <div class="x-body">
        <form class="layui-form">
            <input type="hidden" name="idxProAdmin" id="idxProAdmin" value="${id}"/>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    开始时间
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="beginTime" name="beginTime"
                           autocomplete="off" class="layui-input" disabled style="background-color: #b7b1b1;">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    结束时间
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="endTime" name="endTime"
                           autocomplete="off" class="layui-input" disabled style="background-color: #b7b1b1;">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    距离结束时间天数
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="differenceTime" name="differenceTime"
                           autocomplete="off" class="layui-input" disabled style="background-color: #b7b1b1;">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">
                    需要提交的数据
                </label>
                <div class="layui-input-inline">
                    竣工报验单；<br/><br/>

                    竣工验收报告和缺陷整记录；<br/><br/>

                    工程竣工图及说明；<br/><br/>

                    电器试验及保护整定调整记录；<br/><br/>

                    安全工器具的试验报告；<br/><br/>

                    隐蔽工程的施工及试验记录；<br/><br/>

                    电气运行管理的有关规定和制度；<br/><br/>

                    值班电工名单及资格；<br/><br/>

                    供电企业认为必要的其他资料和记录；<br/><br/>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" type=button codeTyle="3" lay-submit="">
                    确认提交
                </button>
            </div>
      </form>
    </div>
    <script>

        $(function(){
            getProTime($("#idxProAdmin").val(),30);
        })

        layui.use(['form','layer'], function() {
            $ = layui.jquery;
            var form = layui.form
                , layer = layui.layer, layedit = layui.layedit;

            //自定义验证规则
            form.verify({});

            //监听提交
            form.on('submit(add)', function (t) {
                var params = {
                    //tcaDescribe : layui.layedit.getContent(index),
                    "idProAdmin": $("#idxProAdmin").val(),
                    "submitState":3
                }
                if (true) {
                    ajaxFun('post','/pc/project/addCompletionDataCollection',params,function(data){
                        if (data.code != 0) {
                            alertFun(data);
                        } else {
                            window.location.href = path + "/modules/project/towPro/jgys/list.html";
                            console.log("success !");
                        }
                    })
                    return false;
                }
            });
        });

    </script></body></html>